package com.xuecheng.learning.dao;

import com.xuecheng.framework.domain.learning.XcLearningCourse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: gongfy
 * @create: 2020/9/25 16:12
 * @Description:
 */
@Repository
public interface XcLearningCourseRepository extends JpaRepository<XcLearningCourse,String> {

    //根据用户和课程查询选课记录，用于判断是否添加选课
    public XcLearningCourse findXcLearningCourseByUserIdAndCourseId(String userId,String courseId);
}
